﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Windows.Forms;

namespace AMS
{
    public class ExceptionHandler
    {
        static frmError error = new frmError();

        public static void PrepareExceptionHandler(Form mdiParent, FormManager formManager)
        {
            error.MdiParent = mdiParent;
        }

        public static void HandleException(Exception ex)
        {
            error.LoadException(ex);
            error.Show();
            error.BringToFront();
        }
    }
}
